package com.hxx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hxx.domain.Order;
import com.hxx.domain.OrderStatus;
import com.hxx.dto.OrderRequest;

import java.util.List;

public interface OrderService extends IService<Order> {
    // 根据客户手机号查询订单
    List<Order> findByCustomerPhone(String customerPhone);

    // 根据订单状态查询订单
    List<Order> findByStatus(OrderStatus status);

    //创建订单
    Order createOrder(OrderRequest orderRequest);
}
